package com.yc154.springmvc.biz;

public class ServiceException extends RuntimeException{

    // 异常产生时的环境数据或异常数据
    private Object data;

    public ServiceException(String message, Object data) {
        super(message);
        this.data = data;
    }

    public Object getData() {
        return data;
    }
}
